<template>
  <div>
    <h1>我的，query传入id={{ id }}</h1>
    <div></div>
  </div>
</template>

<script lang="ts" setup>
import { useRouter,useRoute } from 'vue-router'

const router=useRouter()
const route=useRoute()

console.log("query",route.query)
const id=route.query.id || '888'

</script>

<style lang="scss" scoped>

</style>